package com.xjzd.spring.property;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration(proxyBeanMethods = false)
public class TestConf {

    @ConfigurationProperties("method")
    @Bean
    public MethodInfo getMethod() {
        MethodInfo methodInfo = new MethodInfo();
        methodInfo.setReturnType("void");
        return methodInfo;
    }
}
